# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=efi-mkuki
pkgver=0.1.0
pkgrel=1
pkgdesc="EFI Unified Kernel Image Maker"
url="https://github.com/jirutka/efi-mkuki"
arch="noarch"
license="MIT"
depends="cmd:objcopy"
source="https://github.com/jirutka/efi-mkuki/archive/v$pkgver/efi-mkuki-$pkgver.tar.gz"
options="!check"  # no tests provided

case "$CARCH" in
	# Gummiboot is currently not available for other architectures.
	# The user has to obtain EFI stubs themselves.
	x86*)	depends="$depends efistub"
		makedepends="gummiboot-efistub"
		;;
esac

package() {
	make install DESTDIR="$pkgdir" prefix=/usr
}

sha512sums="
a6745832bb0b8e1af18c70431f26d778ebd097aab14a17e87ccef4fc95170229238fed308bdc4bea4bf3589bebd8e5d21933912704c33afa9fdaf03c13a84bd3  efi-mkuki-0.1.0.tar.gz
"
